<div class="directorios index">
	<h2><?php __('Directorio');?></h2>
	<table>
		<tr>
			<td class="actions_2"><?php echo $this->Html->link(__('Agregar Contacto', true), array('action' => 'add')); ?></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0">
	<tr>			
			<th><?php echo $this->Paginator->sort('nombre');?></th>
			<th><?php echo $this->Paginator->sort('cargo');?></th>			
			<th><?php echo $this->Paginator->sort('correo');?></th>						
			<th class="actions"><?php __('Acciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($directorios as $directorio):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>		
		<td><?php echo $directorio['Directorio']['nombre']; ?>&nbsp;</td>
		<td><?php echo $directorio['Directorio']['cargo']; ?>&nbsp;</td>		
		<td><?php echo $directorio['Directorio']['correo']; ?>&nbsp;</td>		
		<td class="actions">
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $directorio['Directorio']['id'])); 
 				  echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $directorio['Directorio']['id']), null, sprintf(__('Esta seguro de eliminar este directorio: %s?', true), $directorio['Directorio']['nombre']));				
			?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de %count% en total, empieza con el registro %start%, termina en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<?php  echo $this->Form->menu();?>